import request from '@/utils/request'
import Qs from 'qs'

export function getAllNotification() {
  return request({
    url: '/notification/getAll',
    method: 'get'
  })
}

export function getAllUnconfimed() {
  return request({
    url: '/notification/getUnconfirmed',
    method: 'get'
  })
}

export function confirm(data) {
  return request({
    url: 'notification/confirm',
    method: 'post',
    data: Qs.stringify(data)
  })
}